<?php $this->placeholder('onReady')->captureStart() ?>
    $("#<?php echo $this->id_tablesorter?>").tablesorter(); 
    
    
       
    $("input.change").change(function () {
        if(!numeric(this))return false;
        var obj=this
        
        value=this.value;
       
        $.post('<?php echo $this->baseUrl('utilitycomputing/editartarifas/idZona/'.$this->idZona)?>',{id: this.id,value:value},function(data){
			if(data!='ok') {
			     alert(data)
                 $(obj).addClass('ui-state-error')
			}else{
			     $(obj).removeClass('ui-state-error')
 
                 $(obj).after('<span style="color:green;font-weight:bold">Guardado</span>');
                 $("#" + obj.id + " + span").fadeOut(2000);
			}
		});
	})     
    
<?php $this->placeholder('onReady')->captureEnd() ?>



<?php
$style = <<<STYLE

STYLE;

$script = <<<SCRIPT

SCRIPT;

if($style)$this->headStyle()->appendStyle($style);
if($script)$this->headScript()->appendScript($script);
?>




<table id="<?= $this->id_tablesorter?>" width="100%" class="tablesorter"> 
	<thead>
        <tr> 
        	<th>Tipo</th>
            <th>CPU</th>
            <th>RAM</th> 
            <th>Storage</th> 
            <th>Coste</th>
            <th>Coste Transferencia</th>
        	<th>Venta</th>
        </tr> 
    </thead>
    <tbody>
        <?php echo $this->partialLoop($this->controllerName.'/fila_tarifas.phtml', (array)$this->UcTipoServidor); ?>	
    </tbody>
</table>
		
    
			
    	